from django.contrib import admin
from django.urls import path

from app import views

urlpatterns = [
    path('user/', views.user),
    #类视图的匹配方式
    path('users/<str:id>/',views.Userview.as_view()),
    path('users/',views.Userview.as_view()),
    #
    path('drf_user/',views.Userapi.as_view()),
    path('drf_user/<str:id>/',views.Userapi.as_view())
]
